#include "FordFactory.h"
#include "ToyotaFactory.h"
#include <iostream>
//#include <format>

using namespace std;

void createSomeCars(IAbstractCarFactory& carFactory)
{
	auto sedan{ carFactory.makeSedan() };
	auto suv{ carFactory.makeSuv() };
	// cout << format("Sedan: {}\n", sedan->info());
	// cout << format("Suv: {}\n", suv->info());	
	 printf("Sedan: %s\n", sedan->info().c_str());
	 printf("Suv: %s\n", suv->info().c_str());
}

int main()
{
	FordFactory fordFactory;
	ToyotaFactory toyotaFactory;
	createSomeCars(fordFactory);
	createSomeCars(toyotaFactory);
}
